import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LayoutModule } from '@layout/layout.module';
import { SharedModule } from '@shared/shared.module';
import { HttpClientModule } from '@angular/common/http';
import { TenantsComponent } from '@app/system/tenants/tenants.component';
import { UsersComponent } from '@app/system/users/users.component';
import { RolesComponent } from '@app/system/roles/roles.component';
import { CreateTenantComponent } from '@app/system/tenants/create-tenant/create-tenant.component';
import { EditTenantComponent } from '@app/system/tenants/edit-tenant/edit-tenant.component';
import { CreateUserComponent } from '@app/system/users/create-user/create-user.component';
import { EditUserComponent } from '@app/system/users/edit-user/edit-user.component';
import { SystemRoutingModule } from './system-routing.module';
import { DatadictionaryComponent } from './datadictionary/datadictionary.component';
import { CreateOrUpdateDatadictionaryComponent } from './datadictionary/create-or-update-datadictionary/create-or-update-datadictionary.component';
import { AuditlogComponent } from './auditlog/auditlog.component';
import { OrganizationUnitsComponent } from '@app/system/organizationunits/organizationunits.component';
import { CreateOrUpdateOrganizationUnitsComponent } from './organizationunits/create-or-update-organizationunits/create-or-update-organizationunits.component';
import { AddUsersComponent } from './organizationunits/add-users/add-users.component';
import { AddRolesComponent } from './organizationunits/add-roles/add-roles.component';
import { CreateOrEditRoleComponent } from './roles/create-or-edit-role/create-or-edit-role.component';
import { GroupListComponent } from './datadictionary/group-list/group-list.component';
import { DataListComponent } from './datadictionary/data-list/data-list.component';
import { ComponetsModule } from '@app/components/componets.module';

@NgModule({
        imports: [
                CommonModule,
                FormsModule,
                ReactiveFormsModule,
                HttpClientModule,
                SystemRoutingModule,
                LayoutModule,
                SharedModule,
                ComponetsModule
        ],
        declarations: [
                TenantsComponent,
                UsersComponent,
                RolesComponent,
                CreateTenantComponent,
                EditTenantComponent,
                CreateUserComponent,
                EditUserComponent,
                DatadictionaryComponent,
                CreateOrUpdateDatadictionaryComponent,
                AuditlogComponent,
                OrganizationUnitsComponent,
                CreateOrUpdateOrganizationUnitsComponent,
                AddUsersComponent,
                AddRolesComponent,
                CreateOrEditRoleComponent,
                GroupListComponent,
                DataListComponent
        ],
        entryComponents: [
                CreateTenantComponent,
                EditTenantComponent,
                CreateUserComponent,
                EditUserComponent,
                DatadictionaryComponent,
                CreateOrUpdateDatadictionaryComponent,
                AuditlogComponent,
                OrganizationUnitsComponent,
                CreateOrUpdateOrganizationUnitsComponent,
                AddUsersComponent,
                AddRolesComponent,
                CreateOrEditRoleComponent,
                GroupListComponent,
                DataListComponent
        ],
        // providers: [LocalizationService, MenuService],
})
export class SystemModule { }
